﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebApplication2.Models;

namespace WebApplication2.Controllers
{
    public class DemoController : Controller
    {
        // GET: Demo
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult DemoStyle()
        {
            ViewData["Data1"] = "我是Data1数据";
            ViewBag.Data2 = "我是ViewBag数据";
            var model = new stuInfo()
            {
                Name = "LILI",
                Age=20,
                Sex="男",
                FK_classID=2
            };
            return View(model);
        }
    }
}